import request from "@/utils/request";
import { baseUrlConfig } from '@/config/config'

const bastPath = baseUrlConfig.resource;

// 查询数据字典
export const getResource = (key: string) => {
  return request({
    url: bastPath + "/resource/get",
    method: "get",
    params: { key },
  });
};

// 修改数据字典
export const postResource = (data: any) => {
  return request({
    url: bastPath + "/resource/change",
    method: "post",
    data,
  });
};
